package com.loyal.loyalerp.basedata.permission.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.loyal.loyalerp.basedata.permission.util.ActionJsonSerializer;
import com.loyal.loyalerp.basedata.permission.util.PermissionCodeJsonSerializer;
import com.loyal.loyalerp.basedata.permission.util.SystemJsonSerializer;

public class GyPermission {
    private Integer id;

    
    private String systemcode;

    @JsonSerialize(using = PermissionCodeJsonSerializer.class)
    private String permissioncode;

    private String permissionname;

    private String entitycode;

    private String entityname;

    @JsonSerialize(using = ActionJsonSerializer.class)
    private String actioncode;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @JsonSerialize(using = SystemJsonSerializer.class)
    public String getSystemcode() {
        return systemcode;
    }

    public void setSystemcode(String systemcode) {
        this.systemcode = systemcode == null ? null : systemcode.trim();
    }

    public String getPermissioncode() {
        return permissioncode;
    }

    public void setPermissioncode(String permissioncode) {
        this.permissioncode = permissioncode == null ? null : permissioncode.trim();
    }

    public String getPermissionname() {
        return permissionname;
    }

    public void setPermissionname(String permissionname) {
        this.permissionname = permissionname == null ? null : permissionname.trim();
    }

    public String getEntitycode() {
        return entitycode;
    }

    public void setEntitycode(String entitycode) {
        this.entitycode = entitycode == null ? null : entitycode.trim();
    }

    public String getEntityname() {
        return entityname;
    }

    public void setEntityname(String entityname) {
        this.entityname = entityname == null ? null : entityname.trim();
    }

    public String getActioncode() {
        return actioncode;
    }

    public void setActioncode(String actioncode) {
        this.actioncode = actioncode == null ? null : actioncode.trim();
    }

	@Override
	public String toString() {
		return "GyPermission [id=" + id + ", systemcode=" + systemcode
				+ ", permissioncode=" + permissioncode + ", permissionname="
				+ permissionname + ", entitycode=" + entitycode
				+ ", entityname=" + entityname + ", actioncode=" + actioncode
				+ "]";
	}
    
}